//
//  Student.m
//  复合类型
//
//  Created by mir_yan on 2018/9/29.
//  Copyright © 2018年 hakeem. All rights reserved.
//

#import "Student.h"

@implementation Student

- (instancetype)initWithBook: (Book*)book lession:(Lession*)lession
{
    self = [super init];
    if (self) {
        self.book = book;
        self.lession = lession;
    }
    return self;
}

- (void)showStudentMes {
    NSLog(@"book:name:%@ pages:%ld", self.book.name, self.book.pages);
    NSLog(@"lession:name:%@ hours:%ld", self.lession.name, self.lession.hours);
}

@end
